package com.example.androidcomplete02.fragment;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.example.androidcomplete02.R;

public class ListFragmentDivideEx extends Activity implements
		WordListFragment.OnWordChangeListener {
	TextView wordDesc;
	String[] DESC;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch20_wordlist);
		wordDesc = (TextView) findViewById(R.id.worddesc);
		DESC = getResources().getStringArray(R.array.desc);
	}

	public void onWordChanged(int index) {
		wordDesc.setText(DESC[index]);
	}
}